import 'package:bi_project/http/request/base_request.dart';

import 'hi_net_adapter.dart';

var testData = {
  "bannerList": [
    {
      "id": "1",
      "sticky": 1,
      "type": "recommend",
      "title": "获得",
      "subtitle": "测试2",
      "url": "http:bia.doo.com",
      "cover":
          "https://tse4-mm.cn.bing.net/th/id/OIP-C.WkkIXkr-QmHImU57KtkYQgHaEo?w=296&h=185&c=7&r=0&o=5&pid=1.7",
      "createTime": "2021-2-3 9:25:34"
    },
    {
      "id": "1",
      "sticky": 1,
      "type": "video",
      "title": "测试",
      "subtitle": "测试2",
      "url": "http:bia.doo.com",
      "cover":
          "https://tse4-mm.cn.bing.net/th/id/OIP-C.N0USLldg_iKDGVKT12vB4AHaEK?w=315&h=180&c=7&r=0&o=5&pid=1.7",
      "createTime": "2021-2-3 9:25:34"
    },
    {
      "id": "1",
      "sticky": 1,
      "type": "recommend",
      "title": "风景",
      "subtitle": "测试2",
      "url": "http:bia.doo.com",
      "cover":
          "https://tse4-mm.cn.bing.net/th/id/OIP-C.D6sGUSn8wBdRhOaw6sDY3AHaEo?w=284&h=180&c=7&r=0&o=5&pid=1.7",
      "createTime": "2021-2-3 9:25:34"
    },
    {
      "id": "1",
      "sticky": 1,
      "type": "recommend",
      "title": "风景2",
      "subtitle": "测试2",
      "url": "http:bia.doo.com",
      "cover":
          "https://tse1-mm.cn.bing.net/th/id/OIP-C.jzcWzXf_uts2sgE2WChuCQHaEo?w=298&h=186&c=7&r=0&o=5&pid=1.7",
      "createTime": "2021-2-3 9:25:34"
    }
  ],
  "categoryList": [
    {"name": "推荐", "count": 1},
    {"name": "热门", "count": 1},
    {"name": "追播", "count": 1},
    {"name": "影视", "count": 1},
    {"name": "搞笑", "count": 1},
    {"name": "日常", "count": 1},
    {"name": "综合", "count": 1},
    {"name": "手机游戏", "count": 1},
    {"name": "短片.手机.配音", "count": 1},
  ],
  "videoList": [
    {
      "id": "1",
      "vid": 1,
      "title": "1",
      "tname": "测试",
      "url": "测试2",
      "cover": "http:bia.doo.com",
      "pubdate": 568,
      "desc": "2021-2-3 9:25:34",
      "view": 9565,
      "duration": 65645221364,
      "owner": {"name": "小天", "face": "生活", "fans": 5689},
      "reply": 65656,
      "favorite": 56689,
      "like": 23568,
      "coin": 256,
      "share": 300,
      "createTime": "2021-2-3 9:25:34",
      "size": 20
    }
  ]
};

class MockHomeAdapter {
  @override
  Future<NiNetResponse<T>> send<T>() {
    return Future.delayed(const Duration(milliseconds: 1000), () {
      return NiNetResponse(statusCode: 200, data: testData as T);
    });
  }
}
